package cn.zn.oss.service;

import cn.zn.oss.dto.FileDto;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface FileService {

    FileDto uploadFile(MultipartFile file, HttpServletRequest request) throws Exception;

    void downloadFile(String fileName, String filePath, HttpServletResponse response) throws Exception;

}
